/**   
* @Description: 参数校验Aop配置类 
*/ 
package org.kskj.ipw.config;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.kskj.ipw.exception.ValidateException;
import org.kskj.ipw.validator.ParamValidatorProcess;
import org.springframework.stereotype.Component;

/** 
* @author sztan 
* @date 2016年8月5日 下午3:54:42 
* @version 1.0 
*/

@Aspect
@Component
public class ValidatorAopConfig {
	
	@Before("@annotation(org.kskj.ipw.validator.annotation.ParamValidator)")
	public void paramCheck(JoinPoint joinPoint) throws ValidateException{
		ParamValidatorProcess.paramValidator(joinPoint);
	}
}
